 <div class="span-19">


                <div id="content">

                    <h1>Update Driver</h1>


                    <div class="form">
                        <?php if (isset($error)): ?>
                            <div class="flash-error">
                                <ul>
                                    <?php echo $error; ?>
                                </ul>
                            </div>
                        <?php endif; ?>
                        <form enctype="multipart/form-data" id="driver-form" action="<?php echo base_url('driver/update/'.$id); ?>" method="post">
                            <p class="note">Fields with <span class="required">*</span> are required.</p>


                            <div class="row">
                                <label for="Driver_name" class="required">Name <span class="required">*</span></label>        <input size="45" maxlength="45" name="Driver[name]" id="Driver_name" type="text" value="<?php echo $name; ?>">            </div>

                            <div class="row">
                                <label for="Driver_birth_date" class="required">Birth Date <span class="required">*</span></label>        <input id="Driver_birth_date" name="Driver[birth_date]" type="text" class="hasDatepicker" value="<?php echo $birth_date; ?>">                    </div>

                            <div class="row">
                                <label for="Driver_email" class="required">Email <span class="required">*</span></label>        <input size="50" maxlength="50" name="Driver[email]" id="Driver_email" type="text" value="<?php echo $email; ?>">            </div>

                            <div class="row">
                                <label for="Driver_phone" class="required">Phone <span class="required">*</span></label>        <input size="40" maxlength="40" name="Driver[phone]" id="Driver_phone" type="text" value="<?php echo $phone; ?>">            </div>

                            <div class="row">
                                <label for="Driver_avatar">Avatar</label>        
                                <input type="hidden" name="oldImg" value="<?php echo $avatar; ?>"/>
                                <input name="fUpload" id="Driver_avatar" type="file">            </div>

                                        <div class="row">
                                            <label for="Driver_type_vehicle" class="required">Type Vehicle <span class="required">*</span></label>                <select name="Driver[type]" id="Driver_type_vehicle">
                                            <?php
                                                $typearr = array('Tram', 'Autobus', 'Nightliner', 'Regionalbus');
                                                for ($i=0;$i<=3; $i++) {
                                                    if ($typearr[$i] == $type) {
                                                        printf('<option value="%s" selected="selected">%s</option>', $typearr[$i], $typearr[$i]);
                                                    } else {
                                                        printf('<option value="%s">%s</option>', $typearr[$i], $typearr[$i]);
                                                    }
                                                }
                                            ?>
                                            </select>            </div>

                                        <div class="row buttons">
                                            <input type="submit" name="yt0" value="Create">    </div>

                                        </form>
                                        </div><!-- form -->	</div>
                                        <!-- content -->



                                        </div>
                                        <div class="span-5 last">
                                            <div id="sidebar">
                                                <div class="portlet" >
                                                    <div class="portlet-decoration">
                                                        <div class="portlet-title">Operations</div>
                                                    </div>
                                                    <div class="portlet-content">
                                                        <ul class="operations" >
                                                            <li><a href="<?php echo base_url();?>driver/display">List Driver</a></li>
                                                            <li><a href="<?php echo base_url();?>driver/manage">Manage Driver</a></li>
                                                        </ul></div>
                                                </div>	
                                            </div><!-- sidebar -->
                                        </div>
